import request from '@/utils/request'

const chartApi = {

  getuserchart: function(type) {
    return request({
      url: '/admin/user-newly-chart?type=' + type,
      method: 'get',
      params: {}
    })
  },

  getorderchart: function(type) {
    return request({
      url: '/admin/order-newly-chart?type=' + type,
      method: 'get',
      params: {}
    })
  },
  getsaleschart: function(type) {
    return request({
      url: '/admin/sales-report-chart?type=' + type,
      method: 'get',
      params: {}
    })
  },

  getcustomerchart: function(type) {
    return request({
      url: '/admin/customer-repeat-buy-chart?type=' + type,
      method: 'get',
      params: {}
    })
  }

}

export default chartApi

